#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-dict-traverse

import re
import time
from datetime import datetime
from datetime import timedelta

a = []
a.append("a")
a.append("b")

print(a)


def foo(*args, **kwargs):
    print('args = ', args)
    print('kwargs = ', kwargs)
    print('---------------------------------------')
    print(kwargs['c'])


if __name__ == '__main__':
    # foo(1, 2, c=4)
    # foo(1, 2, 3, 4)
    # foo(a=1, b=2, c=3)
    # foo(1, 2, 3, 4, a=1, b=2, c=3)
    # foo('a', 1, None, a=1, b='2', c=3)

    # t = ()
    # t = t + (1,)
    # t = t + (2,)
    # print(t)
    # print(len(t))

    # url = 'https://images.baixingliangfan.cn/advertesPicture/20190116/20190116140738_7766.jpg'
    #
    # p = re.compile('https?://\S*/(?P<FILENAME>\S+\.(jpg|png|jpeg))$', re.I)
    # if p.search(url):
    #     t = p.search(url).groupdict()
    #     print(t["FILENAME"])

    # delta = timedelta(seconds=1)
    # print(delta)

    # date_list = time.strptime("20200423171744", "%Y%m%d%H%M%S")
    # print(date_list)
    # y, m, d, H, M, S = date_list[:6]
    # delta = timedelta(seconds=1)
    # date_result = datetime(y, m, d, H, M, S) + delta
    # print(date_result.strftime("%Y%m%d%H%M%S"))

    # date_result = datetime(y, m, d) + delta
    # date_result = date_result.strftime("%Y-%m-%d")
    for page in range(1, 7):
        print(str(page))
